package OoDay03;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog=new Dog("小黑",1,"黑");
        dog.eat();//dog重写
        dog.drink();//复用动物类
        dog.swim();//dog重写
        dog.lookHome();//dog独有

        Fish fish=new Fish("小白",1,"白");
        fish.eat();//fish重写
        fish.drink();//复用动物类
        fish.swim();//fish重写

        Chick chick=new Chick("小黄",2,"黄");
        chick.eat();//chick重写
        chick.drink();//复用动物类
        chick.layEggs();//chick特有
    }
}
